Skip to content

Added generic pragmas and created fallback for atomics#734

Merged
rocm-ci merged 2 commits into
ROCm:release/rocm-rel-6.4from
StreamHPC:upstream-atomics-generic-fix
May 22, 2025
Merged

Added generic pragmas and created fallback for atomics#734
rocm-ci merged 2 commits into
ROCm:release/rocm-rel-6.4from
StreamHPC:upstream-atomics-generic-fix

Conversation

@NB4444
Copy link
Copy Markdown
Contributor

@NB4444 NB4444 commented May 7, 2025

Added the generic build targets to the config. And created a fallback with warning for unknown types.
#733

@NB4444 NB4444 mentioned this pull request May 7, 2025
@NB4444 NB4444 marked this pull request as ready for review May 9, 2025 08:45
Copy link
Copy Markdown
Contributor

@cgmb cgmb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment on lines -93 to +94
#elif defined(__GFX11__)
#elif defined(__GFX11__) || defined(__gfx11_generic__)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does no harm to do this, but I will note that the __GFX11__ macro is defined whenever __gfx11_generic__ is defined.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| defined(__gfx90c__) || defined(__gfx9_generic__)
#define ROCPRIM_TARGET_GCN5 1
#elif defined(__GFX12__)
#elif defined(__GFX12__) || defined(__gfx12_generic__)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does no harm to do this, but I will note that the __GFX12__ macro is defined whenever __gfx12_generic__ is defined.

Copy link
Copy Markdown

@rocm-ci rocm-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto Code-Review by Jenkins

@rocm-ci rocm-ci merged commit f71dbc8 into ROCm:release/rocm-rel-6.4 May 22, 2025
11 checks passed
stanleytsang-amd pushed a commit to ROCm/rocm-libraries that referenced this pull request Jun 11, 2025
assistant-librarian Bot pushed a commit that referenced this pull request Jun 11, 2025
rocPRIM: Adapt ifdefs to generic architectures

For #67. Seems like this was overlooked in
#734.
jayhawk-commits pushed a commit to ROCm/rocm-libraries that referenced this pull request Jun 17, 2025
stanleytsang-amd pushed a commit to ROCm/rocm-libraries that referenced this pull request Aug 25, 2025
…k_scan_state (#698)

In ROCm/rocPRIM#734 a fix was introduced,
something must have gone wrong with rebasing. Here we reintroduce the
fix for both spirv and unknown architectures that can not use our
128-bit atomic.
assistant-librarian Bot pushed a commit that referenced this pull request Aug 25, 2025
Reintroduce fix for spirv and unknown architecture when using
 lookback_scan_state (#698)

In #734 a fix was introduced,
something must have gone wrong with rebasing. Here we reintroduce the
fix for both spirv and unknown architectures that can not use our
128-bit atomic.
ammallya pushed a commit that referenced this pull request Oct 28, 2025
…k_scan_state (#698)

In #734 a fix was introduced,
something must have gone wrong with rebasing. Here we reintroduce the
fix for both spirv and unknown architectures that can not use our
128-bit atomic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support generic ISAs

4 participants